package com.hc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hc.domain.City;
import com.hc.dto.CityDTO;
import com.hc.mapper.CityMapper;
import com.hc.service.CityService;
import com.hc.vo.CityVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 市
 *
 * @author 梁云亮
 */
@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements CityService {

    @Resource
    private CityMapper cityMapper;

    @Transactional(rollbackFor = Exception.class)
    @Override
    public int createCity(CityVO cityVO) {
        return 1;
    }

    @Override
    public List<CityDTO> listCitiesByProvinceId(Integer providerId) {
        return null;
    }
}
